<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="renderer" content="webkit|ie-comp|ie-stand">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<!--[if lt IE 9]>
		<script type="text/javascript" src="__UU__/lib/html5.js"></script>
		<script type="text/javascript" src="__UU__/lib/respond.min.js"></script>
		<script type="text/javascript" src="__UU__/lib/PIE_IE678.js"></script>
		<![endif]-->
		<link href="__UU__/css/H-ui.min.css" rel="stylesheet" type="text/css" />
		<link href="__UU__/css/H-ui.login.css" rel="stylesheet" type="text/css" />
		<link href="__UU__/css/style.css" rel="stylesheet" type="text/css" />
		<link href="__UU__/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
		<!--[if IE 6]>
		<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
		<script>DD_belatedPNG.fix('*');</script>
		<![endif]-->
		<title>忘记密码</title>
		<meta name="keywords" content="">
		<meta name="description" content="">
	</head>
	<body>
		<input type="hidden" id="TenantId" name="TenantId" value="" />
		<div class="header"></div>
		<div class="loginWraper">
			<div id="loginform" class="loginBox2" style="padding-top: 20px;">
				<form class="form form-horizontal" action="__APP__/Login/update_password" method="post">
					<div class="row cl">
						<label class="form-label col-3"><i class="Hui-iconfont">&#xe696;</i></label>
						<div class="formControls col-8">
							<input id="username" name="username" type="text" placeholder="手机号" class="input-text size-L " value="{$_POST['username']}">
						</div>
					</div>
					<div class="row cl">
						<label for="" class="form-label col-3"><i class="Hui-iconfont">&#xe63f;</i></label>
						<div class="formControls col-8 ">
							<input class="input-text size-L input-pass" type="text" placeholder="手机收到的验证码"  style="width:150px;" name="code" value="{$_POST['code']}">
							<button type="button" class="btn btn-success radius" id="send_code">获取验证码</button>
						</div>
					</div>
					<div class="row cl">
						<label class="form-label col-3"><i class="Hui-iconfont">&#xe60e;</i></label>
						<div class="formControls col-8">
							<input id="" name="password" type="password" placeholder="新密码" class="input-text size-L">
						</div>
					</div>
					<div class="row cl">
						<label class="form-label col-3"><i class="Hui-iconfont">&#xe60e;</i></label>
						<div class="formControls col-8">
							<input id="" name="ckpassword" type="password" placeholder="确认密码" class="input-text size-L">
						</div>
					</div>
					<div class="row cl">
						<div class="formControls col-8 col-offset-3">
							<input class="input-text size-L input-pass" type="text" placeholder="验证码"  style="width:150px;" name="shop_verify">
							<img src="__APP__/Public/verify" onclick="this.src='__APP__/Public/verify'" width="140px"> <a id="kanbuq" href="javascript:;">看不清，换一张</a> </div>
					</div>
					<div class="row">
						<div class="formControls col-8 col-offset-3">
							<input name="" type="submit" class="btn btn-success radius size-L" value="&nbsp;确&nbsp;&nbsp;&nbsp;&nbsp;定&nbsp;">
						</div>
					</div>
				</form>
			</div>
		</div>
		<div class="footer">Copyright Eventor 版权所有</div>
<script type="text/javascript" src="__UU__/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__UU__/lib/layer/2.1/layer.js"></script>
<script type="text/javascript" src="__UU__/js/H-ui.js"></script>
<script type="text/javascript">
	$("#kanbuq").click(function(){
		   $("img").attr("src",'__APP__/Public/verify');
	})
	$('#deal').click(function (){
		
		layer.open({
					type: 2,
					title: "商户服务协议",
					content: "__APP__/Login/protocol.html",
					area:[95+'%',($(window).height() - 50) + "px"],
					skin:'layui-layer-molv'
			});
	});
   $("#send_code").click(function(){
	   var that = $(this);
	   var val = $("#username").val();
	    $.ajax({
		   type:"post",
		   url:"__APP__/Login/sendmsg",
		   data:{"username":val,"type":1},
		   dataType:"json",
		   success:function(e){
			   if(e.code == 200){
				   settime(that);
			   }else{
				   layer.msg(e.msg);
			   }
		   },error:function(e){
			   layer.msg('网络错误');
		   }
	   })
   })
    var countdown=60; 
	function settime(obj) { 
	    if (countdown == 0) { 
	        obj.attr("disabled",false);    
	        obj.html('<i class="Hui-iconfont">&#xe696;</i> 获取验证码'); 
	        countdown = 60; 
	        return;
	    } else { 
	        obj.attr("disabled", true); 
	        obj.text(countdown+'s后重新发送');
	        countdown--; 
	    } 
		setTimeout(function() { 
		    settime(obj) }
		    ,1000) 
		}
	  
</script>
</body>
</html>